package version;

import cn.imnaer.common.factory.TimeHelper;
import cn.imnaer.service.persistence.model.Version;
import cn.imnaer.service.rest.feedback.impl.FeedbackComponentRestApiImpl;
import cn.imnaer.service.rpc.feedback.dao.VersionDaoImpl;
public class VersionUtils {

	public static void main(String[] args) {
		Version version = new Version();
		version.setCreateTime(TimeHelper.getCurrentTime());
		version.setVersion("1.0.2");
		VersionDaoImpl.getInstance().insert(version, false);
		Version smallVersion = new Version();
		smallVersion.setCreateTime(0);
		smallVersion.setVersion("0.1.1");
		VersionDaoImpl.getInstance().insert(	smallVersion, false);
		System.out.println(new FeedbackComponentRestApiImpl().getLastVersion());
		System.out.println(new FeedbackComponentRestApiImpl().getSmallVersion());
	}
}
